package com.wxx.template;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/5/24 19:25
 */
public class DesignPatternCourse extends Course{
    private boolean isNeedWriteArticle;

    public DesignPatternCourse() {
    }

    public DesignPatternCourse(boolean isNeedWriteArticle) {
        this.isNeedWriteArticle = isNeedWriteArticle;
    }

    @Override
    void packageCourse() {
        System.out.println("提供Java课程源代码...");
    }

    @Override
    protected boolean needWriteArticle() {
        return isNeedWriteArticle;
    }
}
